package com.qidianit.mes.pro.vo;

import com.qidianit.mes.pojo.SysDictData;
import     com.qidianit.mes.pojo.pro.Process;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/18 - 16:34
 */

/**
 * 流程与工序关联实体类，用于接口数据传输
 * 对应 workflow_process_relation 表及关联对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WorkflowProcessRelation  {

    // 基础字段 - 对应 workflow_process_relation 表
    private Integer id;
    private Integer workflowId;
    private Integer processId;
    private Integer stepOrder;
    private Integer relationNext;
    private String ganttColor;
    private Integer isCritical;
    private Integer needInspection;
    private Integer prepTime;
    private Integer waitTime;
    private String remarks;
    private LocalDateTime createTime;
    private String createBy;
    private LocalDateTime updateTime;
    private String updateBy;
    private Integer deleteFlag;

    // 关联对象 - 对应 JSON 中的嵌套对象

    private Process process;
    private Process nextProcess;
    private SysDictData relationNextDict;
}